﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace messageboard
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {   //页首文本状态
            if (Convert.ToInt32(Session["id"])!=1)
            {
                HyperLink2.Text = "注销";
                HyperLink2.NavigateUrl = "~/default.aspx";
            }
        }

        protected void searchbt_Click(object sender, EventArgs e)
        {   //定向到搜索页面并传送字符串
            Response.Redirect("~/search.aspx?content=" + searchtb.Text.Trim());
        }
    }
}